﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ETA.DomainEnum;
using ETA.Entity;
using FluentNHibernate.Mapping;

namespace ETA.EntityMappings
{
    public class RegistrationBasicInfoMap : ClassMap<RegistrationBasicInfo>
    {
        public RegistrationBasicInfoMap()
        {
            Id(x => x.RegistrationBasicInfoId);
            Map(x => x.RegistrationMainFormId);
            Map(x=>x.Name);
            Map(x => x.NamePinyin);
            Map(x => x.Birthday);
            Map(x => x.Age);
            Map(x => x.IsMarried);
            Map(x => x.SexEnum).CustomType<SexEnum>().Column("Sex"); 
            Map(x => x.Height);
            Map(x => x.EyeLeft);
            Map(x => x.EyeRight);
            Map(x => x.EyeGlass);
            Map(x => x.Weight);
            Map(x => x.EducationLevelEnum).CustomType<EducationLevelEnum>().Column("FinalEducationLevel");
            Map(x => x.Blood);
            Map(x => x.IDCard);
            Map(x => x.BirthPlace);
            Map(x => x.HomeAddress);
            Map(x => x.Certificate);
            Map(x => x.PhoneNum);
            Map(x => x.Mobile);
            Map(x => x.IsGotpassport);
            Map(x => x.HasAbroadExperience);
            Map(x => x.Character);
            Map(x => x.Interest);
            Map(x => x.Advantage);
            Map(x => x.DisAdvantage);
            Map(x => x.NewJobs);
            Map(x => x.OrginalJobs);
            Map(x => x.ImageId);
        }
    }
}
